package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_gps_equipment_information")
public class SbMessageVo implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id  ;
    private String imei  ;
    private String gpsname  ;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date periodOfValidity  ;
    private String manufacturer  ;


    @TableField(exist = false)
    private  String speed;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date inserttime  ;

    @TableField(exist = false)
    private Double longitude;
    @TableField(exist = false)
    private Double latitude;
//    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mi:ss")
    @TableField(exist = false)
//    @JsonFormat(pattern = "yyyy-MM-dd hh:mi:ss" ,timezone = "GMT+8")
    private String  dataTime;
}
